This script explains how to reproduce the results in the paper entitled "The New Keynesian model and Bond Yields"

In the folder "ProjNoLoop_2019_forwardTaylorRule":
- First run createFiles_Derivatives_model.m to take derivatives of the model up to third order.
- RunQMLE_u_end2020_muGrid2_zlb.m estimates the benchmark model and its modifications. All results are stored in a mat-file.
- RunQMLE_end2020_muGrid2_EZ_zlb.m estimates the model using the standard formulation of EZ preferences. All results are stored in a mat-file.
- runAccuracyProjection computes the states for the accuracy evaluation of the various solutions. The results are stored in a mat-file that 
  must be copied to the folder "Accuracy5thOrder".

In the folder "Per3rd_2019_forwardTaylorRule":
- First run createFiles_Derivatives_model.m to take derivatives of the model up to third order. 
- run the script RunQMLE_end2020_u.m to generate the results using standard perturbation at third order. 

In the folder "Accuracy5thOrder":
- First run createFiles_Derivatives_model.m to take derivatives of the model up to fifth order. This may take several minutes.
- Then run the script Run_accuracyEuler.m to carry out the accuracy evaluation of the various models (Table 6 in the paper).

IMPORTANT: you need to execute the codes in this order to generate the mat-files, which I was unable to upload because they take up too much space.

Martin M. Andreasen, December 3, 2024. 